package com.s7.ui.app;

import android.app.Application;

import com.s7.ui.exception.CrashHandler;
import com.s7.ui.exception.CrashHandlerData;
import com.s7.ui.exception.OnCrashHandlerListener;


/**
 * Application 基础类
 */
public class BaseApplication extends Application implements OnCrashHandlerListener {

    @Override
    public void onCreate() {
        super.onCreate();
        CrashHandler.getInstance().init(getApplicationContext(), this);
    }

    protected void onUploadLog(CrashHandlerData data) {
    }

    @Override
    public void onException() {
    }

    @Override
    public void onExceptionData(CrashHandlerData data) {
        onUploadLog(data);
    }


}
